package test;

import t1.Arith;

public class test3 {
    public static void main(String[] args) {
        double d1=0.6;
        String str="0.";
        System.out.println(str);
        for (int i = 0; i < 4; i++) {
            if (Arith.mul(d1,2)<1){
                str=str+"0";
                d1=Arith.mul(d1,2);
                System.out.println(str);
                System.out.println(d1);
                System.out.println("=====  " +i+ "=====");
            }else{
                str=str+"1";
                d1=Arith.mul(d1,2);
                d1=Arith.sub(d1,1);
                System.out.println(str);
                System.out.println(d1);
                System.out.println("=====  " +i+ "=====");
            }

        }
        System.out.println(str);
    }
}
